/*
 * @Author: Wang Yang
 * @Date: 2021-06-01 09:52:45
 * @LastEditors: Wang Yang
 * @LastEditTime: 2021-06-01 19:50:39
 * @Description: 入口文件
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { components, plugins } from "./plugins/vant-vue";

// vue-ls配置
const lsOption = {
  namespace: "v__", // key prefix
  name: "ls", // name variable Vue.[ls] or this.[$ls],
  storage: "local" // storage name session, local, memory
};

let app = createApp(App);

components.forEach(component => {
  app.component(component.name, component);
});

plugins.forEach(plugin => {
  app.use(plugin);
});

app.use(router).use(store).mount("#app");
